/**
 * 认识Executor
 */
package JavaSE.MSB.Thread.C14_ThreadPool;

import java.util.concurrent.Executor;

public class T01_MyExecutor implements Executor
{
    
    public static void main(String[] args)
    {
        new T01_MyExecutor().execute(() -> System.out.println("hello executor"));
    }
    
    @Override
    public void execute(Runnable command)
    {
        //new Thread(command).run();
        command.run();
        
    }
    
}

